package com.lemon.exam.entity.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 菜单表 视图对象
 *
 * @author Lemon
 * @since 2025/04/04 14:23:21
 */
@Getter
@Setter
@ToString
@Schema(name = "菜单表 - 视图对象")
public class MenuVO {
    @Id
    @Schema(description = "主键ID")
    private Long id;

    @Schema(description = "路径")
    private String path;

    @Schema(description = "父ID")
    private Long parentId;

    @Schema(description = "菜单名称")
    private String name;

    @Schema(description = "图标地址")
    private String icon;

    @Schema(description = "排序")
    private Integer seq;

    @Schema(description = "树形菜单名称链")
    private String treeLinkId;

    @Schema(description = "创建人ID")
    private String createBy;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "修改人ID")
    private String updateBy;

    @Schema(description = "修改时间")
    private LocalDateTime updateTime;

    @Schema(description = "状态：1启用 0停用")
    private Integer status;

    @Schema(description = "子菜单")
    private List<MenuVO> children;
}
